package cn.yy.fascade.web.controller;

import cn.yy.common.web.Message;
import cn.yy.common.web.MessageUtil;
import cn.yy.logging.annotation.LoggingAccess;
import cn.yy.logging.holder.LoggingAccessInfoHolder;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wood
 */
@LoggingAccess("hello模块")
@Api(tags = "hello测试")
@RestController
public class HelloController {
    @LoggingAccess("测试API")
    @GetMapping("/auth/hello")
    public Message hello(){
        LoggingAccessInfoHolder.logging("hello功能测试，这里的日志是可选的内容");
        return MessageUtil.success("hello plant-identify");
    }
}
